/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bookingsystem;

/**
 *
 * @author admin
 */
public class Flight implements java.io.Serializable{
    private int flightId;
    private String origin;
    private String destination;
    private String date;
    private String time;
    private int seatsCapacity;
    private int bookedSeats;
    
    public Flight(int flightId, String origin, String destination, String date, String time, int seatsCapacity, int bookedSeats){
        this.flightId = flightId;
        this.origin = origin;
        this.destination = destination;
        this.date = date;
        this.time = time;
        this.seatsCapacity = seatsCapacity;
        this.bookedSeats = bookedSeats;
    }
    
    public int getFlightNo(){
        return this.flightId;
    }
    
    public String getOrigin(){
        return this.origin;
    }
    
    public String getDestination(){
        return this.destination;
    }
    
    public String getDate(){
        return this.date;
    }
    
    public String getTime(){
        return this.time;
    }
    
    public int getSeatsCapacity(){
        return this.seatsCapacity;
    }
    
    public int getBookedSeats(){
        return this.bookedSeats;
    }
}
